package org.taru.ems.admin.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.taru.ems.admin.pojo.common.AuthUserVo;
import org.taru.ems.common.common.CommonResult;

import java.util.List;

/**
 * @author songz
 * @version 1.0
 * @date 2024-03-18 15:31
 */
@Api(tags = "认证前端控制器")
@RestController
@RequestMapping("/auth")
public class AuthIdentityController {

    /**
     * 登录
     * @return   http://localhostL8080/login
     */
    @ApiOperation(value = "登录")
    @PostMapping("/login")
    public CommonResult login(@ApiParam(name = "AuthUserVo", value = "认证用户对象", required = true) @RequestBody AuthUserVo  authUserVo) {

        return CommonResult.OK("ok", "123");
    }


}
